<template>
    <div>
        <div class="my">
        <div class="container">
            <div class="box">
                <div class="content">
                    <div class="box1">
                        <div class="logo">
                            <img src="../assets/img/default_user_image.png" alt="" class="auto-img">
                        </div>
                        <div class="login">请先登录再操作哦~</div>
                    </div>
                
                    <div class="set" style="width:30px;height:30px;" @click="$router.go(-1)">
                        <img src="../assets/img/指缘返回4.png" alt="" class="auto-img">
                      
                    </div>
                </div>
                
            </div>
            <div class="main">
                <ul>
                    <li>
                        <div class="imgbox">
                            <img src="../assets/img/icon_user_message.png" alt="" class="auto-img">
                        </div>           
                        <span>消息</span>
                    </li>
                    <li>
                        <div class="imgbox">
                            <img src="../assets/img/icon_user_collection.png" alt="" class="auto-img">
                        </div>           
                        <span>收藏</span>
                    </li>
                    <li>
                        <div class="imgbox">
                            <img src="../assets/img/icon_user_focus.png" alt="" class="auto-img">
                        </div>           
                        <span>点赞</span>
                    </li>
                    <li>
                        <div class="imgbox">
                            <img src="../assets/img/icon_live_time.png" alt="" class="auto-img">
                        </div>           
                        <span>足迹</span>
                    </li>
                    
                </ul>
                <ul style="margin-top: 40px;">
                    <li>
                        <div class="imgbox">
                            <img src="../assets/img/road_come.png" alt="" class="auto-img">
                        </div>           
                        <span>讨论</span>
                    </li>
                    <li>
                        <div class="imgbox">
                            <img src="../assets/img/icon_user_cv.png" alt="" class="auto-img">
                        </div>           
                        <span>查询</span>
                    </li>
                    <li>
                        <div class="imgbox">
                            <img src="../assets/img/icon_youth_apply.png" alt="" class="auto-img">
                        </div>           
                        <span>中青号主页</span>
                    </li>
                    <li>
                        <div class="imgbox">
                            <img src="../assets/img/icon_user_feed_back.png" alt="" class="auto-img">
                        </div>           
                        <span>反馈</span>
                    </li>
                    
                </ul>
            </div>
            <div class="line1"></div>
            <div class="foot">
                <div class="my">
                    <div class="icon"><img src="../assets/img/icon_user_act_list.png" alt="" class="auto-img"></div>
                    <p>我的活动</p>
                    <span></span>
                </div>
                <div class="line2"></div>
                <div class="my">
                    <div class="icon"><img src="../assets/img/icon_user_about_us.png" alt="" class="auto-img"></div>
                    <p>关于我们</p>
                    <span></span>
                </div>
                <div class="line2"></div>
            </div>
           
            
            <div class="footbox">
           <div class="loginend" @click="login">登录</div>
                <banner-list></banner-list>
            </div>
           
        </div>
        
    </div>
    </div>
</template>

<script>
import bannerList from '../components/bannerList.vue';
export default {
    methods:{
      login(){
        // let token = window.localStorage.getItem("token");
        this.$router.push("/login");
      }
    },
    components:{
      bannerList
    }
}
</script>

<style lang="scss">
.my {
  .set{
   width: 30px;
   height: 30px;
  }
  .loginend{
    height: 50px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
    background: #ee4546;
    color: #fff;
    border-radius: 25px;
    margin: 30px 10px;
    margin-bottom: 100px;
  }
  footer {
    // margin-left: 13px;
    // margin-right: 10px;
    .mine {
      .imgbox {
        background: url(../assets/img/icon_user_selected.png) no-repeat -4px -1px;
        width: 36px;
        height: 42px;
      }
    }
    & > div {
      &:nth-child(5) {
        a {
          color: red;
        }
      }
    }
  }
  .box {
    width: 100%;
    background-color: #ea5953;
    height: 120px;
    padding: 20px 0px 0 0px;
    .set {
      width: 20px;
      height: 20px;
    }
  }
  .content {
    margin-left: 13px;
    margin-right: 15px;
    display: flex;
    justify-content: space-between;
  }
  .box1 {
    display: flex;
    .login {
      display: flex;
      align-self: center;
      margin-left: 10px;
      font-size: 17px;
      color: #fff;
      font-weight: bold;
    }
    .logo {
      width: 85px;
      height: 85px;
      border-radius: 50%;
    }
  }
  .main {
    padding: 25px 20px;
    ul {
      display: flex;
      justify-content: space-between;
      li {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 20%;
        .imgbox {
          width: 30px;
          height: 30px;
        }
        span {
          font-weight: bold;
          font-size: 12px;
        }
      }
      &:last-child {
        li {
          
          &:nth-child(3) {
            display: flex;
            flex-direction: column;
            align-items: center;
          }
        }
      }
    }
  }
  .line1 {
    width: 100%;
    height: 5px;
    background-color: #f7f7f7;
  }
  .line2 {
    background-color: #ccc;
    width: 100%;
    height: 1px;
  }
  .foot {
    width: 100%;
    .my {
      padding-top: 20px;
      padding-left: 15px;
      display: flex;
      padding-bottom: 20px;
      p {
        font-weight: bold;
        font-size: 15px;
        display: flex;
        align-items: center;
      }
      .icon {
        width: 25px;
        height: 25px;
        margin-right: 10px;
      }
    }
  }
  .footbox {
    position: fixed;
    bottom: 0;
    min-width: 375px;
    max-width: 750px;
    width: 100%;
  }
}

</style>